package cn.bonoon.kernel.menus;

import cn.bonoon.handler.AutoManager;
import cn.bonoon.kernel.web.ITabHandler;

public class TabItemSimpleParser implements TabItemParser{
	
	private String href;
	
	/** 可以使用ajax或iframe等方式进行数据的加载 */
	private final String type;
	
	public TabItemSimpleParser(String href, String type){
		this.href = href;
		this.type = type;
	}
	
	@Override
	public ITabHandler parse(AutoManager manager) {
		return null;
	}
	
	@Override
	public String getHref() {
		return href;
	}
	
	@Override
	public void init(PlatformContext context, TabItemDefinition item) {
		href = context.path(href);
	}

	public String getType() {
		return type;
	}
}
